package eu.news.interconnect;

import java.io.IOException;
import java.util.Date;

/**
 * 
 * @author WZZ
 * 
 */
public class NewsEntity extends Entity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6903108968217630190L;
	
	String title;
	String content;
	String operator;
	Date time;
	String sort;
	String special="新闻";
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getSpecial() {
		return special;
	}

	public void setSpecial(String special) {
		this.special = special;
	}

	@Override
	public byte[] getSerializeBytes() throws IOException {
		return Utils.getObjectBytes(this);
	}

}
